﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using SGRapidForm.Permission.Entity;
using SGRapidForm.Common;

namespace SGRapidForm.Permission.Service.Interface
{
    [ServiceContract(Namespace = "http://www.solutiongear.net/SGRapidForm/")]
    public interface IUserDept
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool UserDept_Add(UserDept userDept);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool UserDept_BulkAdd(List<UserDept> userDept);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool UserDept_Delete(string userKeyid, string deptKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool UserDept_BulkDelete(string userKeyid, string[] deptKeyids);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool UserDept_Exists(string userKeyid, string deptKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<Dept> UserDept_GetDeptByUserKeyid(string userKeyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<Dept> UserDept_GetUnmappedDeptByUserKeyid(string userKeyid, string filterConditions);
    }
}
